import {
    createDOMElement
} from '../dom'
import {createReactInstance} from './'

export function createStateNode(fiber) {
    if (fiber.tag === 'host_component') {
        return createDOMElement(fiber)
    }else {
        return createReactInstance(fiber)
    }
}